[unix_http_server]
file = /tmp/supervisor.sock
username = minosuser
password = 123456

[inet_http_server]
port = 0.0.0.0:9001
username = minosuser
password = 123456

[supervisord]
logfile = /home/work/log/supervisord.log
logfile_maxbytes = 50MB
logfile_backups = 10
loglevel = info
pidfile = /home/work/log/supervisord.pid
subprocpidfile = /home/work/log/subprocess.pids
nodaemon = false
minfds = 1024
minprocs = 200

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[rpcinterface:deployment]
package_server = http://10.2.201.24:8000
download_package_uri = packages
get_latest_package_info_uri = get_latest_package_info
package_root = /home/work/packages
app_root = /home/work/app
log_root = /home/work/log
data_dirs = <%= data_dirs %> 
supervisor.rpcinterface_factory = deployment.rpcinterface:deployment_rpcinterface

[supervisorctl]
serverurl = unix:///tmp/supervisor.sock

[eventlistener:crashmailbatch-monitor]
command = python superlance/crashmailbatch.py --toEmail="alert@example.com" --fromEmail="robot@example.com" --password="123456" --smtpHost="mail.example.com" --tickEvent=TICK_5 --interval=0.5
events = PROCESS_STATE,TICK_5
buffer_size = 100
stdout_logfile = crashmailbatch.stdout
stderr_logfile = crashmailbatch.stderr
autostart = true

[eventlistener:processexit-monitor]
command = python superlance/process_exit_monitor.py
events = PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL,PROCESS_STATE_BACKOFF
stdout_logfile = processexited.stdout
stderr_logfile = processexited.stderr
autostart = true

[include]
files = ./conf/*.cfg

